package com.yymx.toback.common.enums;

/**
 * @Author: ace
 * @Description:
 * @Date: Create in 10:13 2018/11/22
 */
public enum SmsTypeEnum {
    NOMAL_MESSAGE(1, "普通短信"),
    VOICE_MESSAGE(2, "语音短信");

    private int type = 1;
    private String typeModel;

    SmsTypeEnum(int type, String typeModel) {
        this.type = type;
        this.typeModel = typeModel;
    }

    public int getType() {
        return type;
    }

    public SmsTypeEnum setType(int type) {
        this.type = type;
        return this;
    }

    public String getTypeModel() {
        return typeModel;
    }

    public SmsTypeEnum setTypeModel(String typeModel) {
        this.typeModel = typeModel;
        return this;
    }

    public String toNumber() {
        return String.valueOf(this.type);
    }
}
